GET ENV VAR
This routine has been updated. Use .ENV GET ENV VARIABLE for new applications.
This subroutine retrieves the contents of an environment variable. Two arguments are expected to be passed to the subroutine:
Desired environment variable (alpha field, maximum length 132)
Buffer for returned value (alpha field, maximum length 2048 or 2K)
Must be PASS'ed shared.
Returns contents of specified environment variable.
The subroutine can be invoked via SUBR or GOSUB.
The following example retrieves the contents of the PATH environment variable and stores it in a work field.
|